package com.lmq.wxshare.common;

import com.lmq.wxshare.entity.Produce;

import java.util.ArrayList;
import java.util.List;

public class ListCommon {

    public static List<Produce> resetProduces(List<Produce> produces, String authorizeUrl){
        List<Produce> newProduces = new ArrayList<Produce>();
        for(Produce produce : produces){
            produce.setAuthorizeUrl(authorizeUrl.replace("STATE", produce.getId()+""));
            newProduces.add(produce);
        }
        return newProduces;
    }

}
